Imports System.Xml.Serialization
Namespace CSDL

    Public Class EntityContainerAssociationSet
        Inherits XEntityModelElementWithDocumentationBase

        ''' <summary>Initializes an instance of the <see cref="EntityContainerAssociationSet" /> class.
        ''' This is the default constructor for this class.</summary>
        Public Sub New()
            MyBase.New("AssociationSet", EdmXmlNamespace)
        End Sub

        ''' <summary>Initializes an instance of the <see cref="EntityContainerAssociationSet" /> class.</summary>
        ''' <param name="other">An <see cref="System.Xml.Linq.XElement"/> object to copy from.</param>
        Public Sub New(ByVal other As XElement)
            MyBase.New(other)
        End Sub

        Private __end As EntityContainerAssociationSetEndCollection

        <AutoLoad()> _
        <XmlElement("End", GetType(EntityContainerAssociationSetEnd))> _
        Public ReadOnly Property Ends() As EntityContainerAssociationSetEndCollection
            Get
                If (__end Is Nothing) Then
                    __end = New EdmxEditor.CSDL.EntityContainerAssociationSetEndCollection(Me, MyBase.Name.Namespace, "End")
                End If
                Return __end
            End Get
        End Property

        <XmlAttribute()> _
        Public Shadows Property Name() As String
            Get
                Return Me.@Name
            End Get
            Set(ByVal value As String)
                Me.@Name = value
            End Set
        End Property

        <XmlAttribute()> _
        Public Property Association() As String
            Get
                Return Me.@Association
            End Get
            Set(ByVal value As String)
                Me.@Association = value
            End Set
        End Property

    End Class

End Namespace